package com.ruoyi.web.controller.system;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.domain.TbOrder;
import com.ruoyi.system.service.ISysTbOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/tborder")
public class SysTbOrderController extends BaseController {
    @Autowired
    private ISysTbOrderService sysTbOrderService;

    @GetMapping("/getAll")
    @Anonymous
    public R getAll(){
        List<TbOrder> list = sysTbOrderService.list();
        return R.ok(list);
    }
}
